class ListDeviceForGisBean{
  bool success;
  String message;
  int code;
  List<Result> result;
  int timestamp;

  ListDeviceForGisBean(
      {this.success, this.message, this.code, this.result, this.timestamp});

  ListDeviceForGisBean.fromJson(Map<String, dynamic> json) {
    success = json['success'];
    message = json['message'];
    code = json['code'];
    if (json['result'] != null) {
      result = new List<Result>();
      json['result'].forEach((v) {
        result.add(new Result.fromJson(v));
      });
    }
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['success'] = this.success;
    data['message'] = this.message;
    data['code'] = this.code;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Result {
  int id;
  String deviceCode;
  String deviceName;
  int deviceTypeId;
  String deviceTypeName;
  String deviceLonglat;
  int areaId;
  String areaName;
  String iconUrl;
  Null createBy;
  Null createTime;
  Null updateBy;
  Null updateTime;

  Result(
      {this.id,
        this.deviceCode,
        this.deviceName,
        this.deviceTypeId,
        this.deviceTypeName,
        this.deviceLonglat,
        this.areaId,
        this.areaName,
        this.iconUrl,
        this.createBy,
        this.createTime,
        this.updateBy,
        this.updateTime});

  Result.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    deviceCode = json['deviceCode'];
    deviceName = json['deviceName'];
    deviceTypeId = json['deviceTypeId'];
    deviceTypeName = json['deviceTypeName'];
    deviceLonglat = json['deviceLonglat'];
    areaId = json['areaId'];
    areaName = json['areaName'];
    iconUrl = json['iconUrl'];
    createBy = json['createBy'];
    createTime = json['createTime'];
    updateBy = json['updateBy'];
    updateTime = json['updateTime'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['deviceCode'] = this.deviceCode;
    data['deviceName'] = this.deviceName;
    data['deviceTypeId'] = this.deviceTypeId;
    data['deviceTypeName'] = this.deviceTypeName;
    data['deviceLonglat'] = this.deviceLonglat;
    data['areaId'] = this.areaId;
    data['areaName'] = this.areaName;
    data['iconUrl'] = this.iconUrl;
    data['createBy'] = this.createBy;
    data['createTime'] = this.createTime;
    data['updateBy'] = this.updateBy;
    data['updateTime'] = this.updateTime;
    return data;
  }
}